min
{base}
Get minimum of a vector
names
{base}
Retrieve names of a list/vector
nobs
{gdata}
Compute the number of non-missing observations
seq
{base}
Create a sequence
filter
{dplyr}
Filter out rows of a data frame according to logical vector
cut
{base}
Convert Numeric to Factor
ifelse
{base}
Return a or b depending on the value of test
sample
{base}
Takes a sample of the specified size
ordered
{dplyr}
Create an ordered factor
head
{utils}
Show first 5 rows of a data frame
str
{utils}
Get the structure of an R object
median
{stats}
Get median of a vector
subset
{base}
Return subsets of vectors, matrices or data frames which meet conditions.
read.csv
{utils}
Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters
summary
{base}
Obtain summary statistics or detailed regression output
dnorm
{stats}
Density distribution for the normal distribution
as.character
{base}
Coerce a vector to character
plot
{graphics}
Generic function from base R to produce a plot
as.data.frame
{base}
Functions to check if an object is a data frame, or coerce it if possible.
range
{base}
Return range of values
length
{base}
Returns number of elements in an object
data.frame
{base}
Create a data.frame from vectors
sd
{stats}
Get standard deviation of a vector
library
{base}
Load an R package
which
{base}
return indexes of TRUE entries of a logical vector
read_excel
{readxl}
Read an Excel file
setwd
{base}
Set Working Directory
lm
{base}
Fit a linear model
mean
{base}
Get mean of a vector
bar
{base}
Used for annotations, such as “expression(paste(”-“,bar(y)))”
log
{base}
log (default base = e)
var
{stats}
Calculate variance
rnorm
{base}
Generate random numbers from a normal distribution
expression
{base}
Used in plots to add symbols to axes
c
{base}
Combine values/vectors into a vector
par
{graphics}
Set parameters of the plotting device
mutate
{dplyr}
Modify/create a column in a data frame
max
{base}
Get maximum of a vector
The end!